::
@echo off
@Echo ***   RACKSPACE SharePoint Account Prerequisites STARTED on %date% at %time%
::
::
::
Rem Perform the following before running this script
Rem 1-Make sure all service accounts are represented in the script (especially check AppPool Accounts)
REM 2-Replace all passwords with production-ready passwords
REM 3-Make sure you are running this script on the DC!
::
::
Rem SharePoint Service accounts creation
Dsadd user "CN=SP_Admin,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to create the farm (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_Connect,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to run the SharePoint farm (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_SiteAppPool,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to run the IIS Application Pools used by SharePoint (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_SSPAppPool,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to run the IIS Application Pools used for the SSP (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_MYAppPool,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to run the IIS Application Pools used for MYSites (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_SSPService,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to run the SSP service (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_WSSSearch,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to run the search service (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_MOSSSearch,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to run the MOSS search (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=SP_WSSCrawl,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account to crawl the content to be indexed (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
Dsadd user "CN=Site_Admin,CN=Users,DC=sptest,DC=local" -pwd pass@word1 -desc "Service Account Given to Customer (pwd = pass@word1)" -mustchpwd no -canchpwd no -pwdneverexpires yes
::
@Echo ***   SharePoint Account Prerequisites SUCCESSFULLY FINISHED on %date% at %time%
Pause